{extend name="admin@public:base" /}
{block name="main-row-content"}
<div class="page-header">
	<h1>
		当前操作
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			添加前台菜单
		</small>
	</h1>
</div><!-- /.page-header -->
<div class="row">
	<div class="col-xs-12">
		<!-- PAGE CONTENT BEGINS -->
		<form class="form-horizontal ajaxForm3" action="{:url('admin/Sys/front_menu_runadd')}" method="post">
		    <div class="form-group">
				<label class="col-sm-2 control-label no-padding-right" for="form-field-2"><span class="middle red">*</span>上级菜单：</label>
				<div class="col-sm-10">
				   <select name="pid" class="col-xs-10 col-sm-4" required >
                        <option value="0">--默认顶级--</option>
                        {foreach name="menu" item="vo"}
                        <option value="{$vo.id}" {if condition="$vo.id eq $id"} selected {/if}>{$vo.left}{$vo.title}</option>
                        {/foreach}
                    </select>
				</div>
			</div>
			<div class="space-4"></div>
			<div class="form-group">
				<label class="col-sm-2 control-label no-padding-right" for="form-field-1"><span class="middle red">*</span>菜单名称：</label>
				<div class="col-sm-10">
					<input type="text"  name="title" placeholder="请输入菜单名称" class="col-xs-4" required/>
				</div>
			</div>
			<div class="space-4"></div>
			<div class="form-group">
				<label class="col-sm-2 control-label no-padding-right" for="form-field-2"><span class="middle red">*</span>类型：</label>
				<div class="col-sm-10">
				   <select name="type" class="col-xs-10 col-sm-4" required >
                        <option value="0">外部链接</option>
                        <option value="1">模块</option>
                    </select>
                    <div class="col-sm-5 help-block"><i class="fa fa-info-circle color-info1"></i> 外部链接为跳转，模块为内部方法</div>
				</div>
			</div>
			<div class="space-4"></div>					
			<div class="form-group">
				<label class="col-sm-2 control-label no-padding-right" for="form-field-1"><span class="middle red">*</span>URL：</label>
				<div class="col-sm-10">
					<input type="text"  name="links" placeholder="请输入URL" class="col-xs-4" required/>
					<div class="col-sm-5 help-block"><i class="fa fa-info-circle color-info1"></i> 必填（支持三段式home/user/index和带http的链接）</div>
				</div>
			</div>
			<div class="space-4"></div>
			<div class="form-group">
				<label class="col-sm-2 control-label no-padding-right" for="form-field-2"><span class="middle red">*</span>显示位置：</label>
				<div class="col-sm-10">
				   <select name="place" class="col-xs-10 col-sm-4" required >
                        <option value="0">顶部</option>
                        <option value="1">尾部</option>
                    </select>
				</div>
			</div>
			<div class="space-4"></div>			
			<div class="form-group">
				<label class="col-sm-2 control-label no-padding-right" for="form-field-1"><span class="middle red"></span>css图标：</label>
				<div class="col-sm-10">
					<input type="text"  name="css" placeholder="请输入css图标" class="col-xs-4" />
					<div class="col-sm-5 help-block"><i class="fa fa-info-circle color-info1"></i> FontAwesome Icons图标</div>
				</div>
			</div>
            <div class="space-4"></div>
			<div class="form-group">
				<label class="col-sm-2 control-label no-padding-right" for="form-field-2"><span class="middle red">*</span>打开方式：</label>
				<div class="col-sm-10">
				   <select name="target" class="col-xs-10 col-sm-4" required >
                        <option value="_blank">新窗口打开</option>
                        <option value="_self">当前窗口打开</option>
                    </select>
				</div>
			</div>
			<div class="space-4"></div>				
			<div class="form-group">
				<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 是否显示： </label>
				<div class="col-sm-10" style="padding-top:5px;">
					<input name="status" value="1" class="ace ace-switch ace-switch-6" type="checkbox">
					<span class="lbl">&nbsp;&nbsp;默认关闭</span>
				</div>
			</div>
			<div class="space-4"></div>
			<div class="form-group">
				<label class="col-sm-2 control-label no-padding-right" for="form-field-1"><span class="middle red">*</span>排序：</label>
				<div class="col-sm-10">
					<input type="text"  name="sort" value="10" class="col-xs-2" required/>
				</div>
			</div>
            <div class="space-4"></div>
			<div class="clearfix">
				<div class="col-md-offset-3 col-md-9 ">
					<button class="btn btn-info btn-sm btn-radius" type="submit">
						<i class="ace-icon fa fa-check bigger-110"></i>
						提交并保存
					</button>

					&nbsp; &nbsp; &nbsp;
					<button class="btn btn-success btn-sm btn-radius" type="submit">
						<i class="ace-icon fa fa-undo bigger-110"></i>
						重置
					</button>
				</div>
			</div>

			
		</form>
	</div><!-- /.col -->
</div><!-- /.row -->
{/block}